package com.work.libtest2.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.libtest2.dto.EmployeeDto;
import com.work.libtest2.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.awt.print.Book;
import java.util.List;

/**
 * ClassName: UserService
 * Package: com.work.libtest2.service
 * Description:
 *
 * @Author
 * @Create 2024/6/5 21:28
 * @Version 1.0
 */

public interface EmployeeService {
    /**
     *  根据员工的id查询员工
     * */
    Employee getEmployeeById(int i);

    IPage<EmployeeDto> getPage(int currentPage, int pageSize, Employee employee);

    int deleteEmpById(Integer empId);

    int saveEmployee(Employee employee);

    int updateEmployeeById(Employee employee);

    List<Employee> getAllEmpName();
}
